package com.example.pceb.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.time.LocalDate;

@Data
@TableName("achievement")
public class Achievement {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    private String username;  // 关联学生
    private String title;
    private String description;
    private String type;      // 比如“竞赛”、“作品”、“科研”
    private String link;
    private LocalDate date;
}


